package org.ainlolcat.ainscience.utils.executor;

import org.ainlolcat.ainscience.entity.Entity;
import org.ainlolcat.ainscience.utils.executor.cc.CCExecutor;
import org.ainlolcat.ainscience.utils.executor.impl.DataProviderImpl;

/**
 * @author ainlolcat
 *         Date: 11/4/13
 */
public class ExecutorProvider {
    static DataProvider dataProvider =  new DataProviderImpl();

    public static Executor getExecutor(){
        return new CCExecutor(new DataProviderImpl());
    }

    public static Executor getExecutor(Entity entity){
        return new CCExecutor(dataProvider, new FunctionExecutor(entity));
    }
}
